#pragma once
/***********************************************************************************************
COPYRIGHT 2011 Mafahir Fairoze

This file is part of Neural++.
(Project Website : http://mafahir.wordpress.com/projects/neuralplusplus)

Neural++ is a free software. You can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.

Neural++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License <http://www.gnu.org/licenses/> for more details.

***********************************************************************************************/

#include "KohonenLayer.h"

namespace NeuralPlusPlus
	{
	namespace Core
		{
		namespace SOM
			{
			class KohonenLayer;
			/// <summary>
			/// This interface represents a neighborhood function. A neighborhood function determines
			/// the neighborhood of every neuron with respect to winner neuron. This function depends
			/// on the the shape of the layer and also on the training progress.
			/// </summary>
			class INeighborhoodFunction abstract 
				{
				/// <summary>
				/// Determines the neighborhood of every neuron in the given Kohonen layer with respect
				/// to winner neuron.
				/// </summary>
				public: virtual void EvaluateNeighborhood(KohonenLayer *layer, int currentIteration, int trainingEpochs) = 0;
				};
			}

		}
	}